libxl: set rc to 0 in init_acpi_config in success path
authorWei Liu <wei.liu2@citrix.com>
Fri, 16 Dec 2016 15:51:33 +0000 (15:51 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 16 Dec 2016 16:21:43 +0000 (16:21 +0000)
commit08ccb46924385c833bd0da9e087fb6b96fa76849
treee1f6d896c4e68040d74365e91e2aaefde2ad119c
parentcaf520b2c61a35cdb196e850443038d367c10238
libxl: set rc to 0 in init_acpi_config in success path

xc_doamin_getinfo returns >=0 in success path, and if there is no vnode
configured, that rc will be returned to caller, which indicates error.

Fix that by setting rc to 0 in success path.

Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
tools/libxl/libxl_x86_acpi.c